package org.kacangjawa.producer.service.impl;

import org.kacangjawa.producer.service.Producer;

public class ProducerImpl implements Producer {

	@Override
	public int getRandowNumber() {
		int randomNumber = 0;
		
		while(true){
			randomNumber = (int) (Math.random() * 100);
			if(randomNumber >= 50 && randomNumber <= 100)
				break;
		}
		
		return randomNumber;
	}

}
